package ui;

import org.uqbar.commons.model.ObservableObject;
import org.uqbar.commons.utils.Home;

import Aplicacion.Captura;

public class CapturasPendientes extends ObservableObject {
	
	public static final String PAQUETE = "paquete";
	public static final String CLIENTE = "cliente";

	private final Home<Captura> capturasHome;
	private Captura captura;

	public CapturasPendientes (Home<Captura> visor) {
		this.capturasHome = visor;
	}

	// ********************************************************
	// ** Actions
	// ********************************************************

	public void ingresarCaptura() {
		this.capturasHome.add(this.captura);
	}

	// ********************************************************
	// ** Accessors
	// ********************************************************

	public Captura getCaptura() {
		return this.captura;
	}

	public void setCaptura(Captura captura) {
		this.setFieldValue(CLIENTE, captura);
	}

}
